package com.hrt.bean;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/***********************************************************************
 * Module: UserRoles.java Author: Administrator Purpose: Defines the Class
 * UserRoles
 * 用户角色表
 ***********************************************************************/
@Entity
@Table(name = "USER_ROLES")
public class UserRoles implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6796712349455013653L;
	/** @pdOid 92f76088-7b3e-47d3-9c6c-e1cd42d627f8 */
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "UR_ID")
	private Long id;
	/** @pdOid c2c0fb5e-2d37-4f98-b9e4-ba493f66c9c2 */
	@Column(name = "NOTE")
	private java.lang.String note;
	
	
	

	/** @pdOid 86626a6b-589e-4e2a-8720-0e7f8a684f62 */
	@Column(name = "ISDELETE",nullable=false)
	private Integer isdelete=0;

	/** @pdRoleInfo migr=no name=Roles assc=reference28 mult=0..1 side=A */
	@Column(name = "ROLE_ID",nullable=false)
	private Long  roleId;
	
	@Column(name = "USER_ID",nullable=false)
	private Long  userId;
	
	@Column(name = "ROLE_NAME",nullable=false)
	private String rName;

	public Long getId() {
		return id;
	}

	public java.lang.String getNote() {
		return note;
	}

	public Integer getIsdelete() {
		return isdelete;
	}

	public Long getRoleId() {
		return roleId;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public void setNote(java.lang.String note) {
		this.note = note;
	}

	public void setIsdelete(Integer isdelete) {
		this.isdelete = isdelete;
	}

	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}
	
	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getrName() {
		return rName;
	}

	public void setrName(String rName) {
		this.rName = rName;
	}
	
	

	

}
